﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OfficeServer
{
    class Constant
    {        
        public const char SEPERATOR_CHAR = '$';
        public const char SEPERATOR_VALUE_CHAR = ':';
        public const int SERVER_PORT = 7777;
        //public const int SERVER_PORT = 7787;

        public const int CONFIG_NUM_RAND_STRING = 3;

        public const int WELCOMECONNECTING = 6593;
        public const int REQUESTCONNECTING = 2872;
        public const int RESPONSECONNECTING = 1103;
        public const int REQUESTWELCOME = 2973;
        public const int REQUESTPAIRCODE = 3943;
        public const int RESPONSEPAIRCODE = 5292;
        public const int RESPONSECONTENT = 1555;

        public const int LOGOUT = 9999;

        public const int IEFILL = 9921;
        public const int REQUESTFILLFIELD = 2211;   // REQUEST LIST ATTRIBUTES OF IE here
        public const int RESPONSEFILLFIELD = 2218;  // IE here
        public const int REQUESTFIELD = 1122;       // GET THE LIST ATTRIBUTE OF IE
        public const int RESPONSEFIELD = 1127;      // SEND THE VALUE OF ATTRIBUTE
        public const int ENSURE = 1457;


        
        public const int CHECKLIVING = 1101;
        

        public const int STATUS_NOT_CONNECTED = 0;
        public const int STATUS_WAIT_FOR_CODE = 1;
        public const int STATUS_HALF_CONNECTED = 2;
        public const int STATUS_CONNECTED = 3;

        //public const int TimeOut = 10000;

        public const double TIMEOUT = 10;   // minutes


    }
}
